package com.project.service.core.impl;

import com.project.mapper.core.MenuMapper;
import com.project.model.core.Menu;
import com.project.service.common.impl.BaseServiceImpl;
import com.project.service.core.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wyy
 * @date 2019-09-14 04:53
 */
@Service("menuServiceImpl")
public class MenuServiceImpl extends BaseServiceImpl<Menu, Long> implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    /**
     * 根据 用户id
     * 查询菜单资源
     * 返回行数据
     */
    @Override
    public List<Menu> findOrdinaryMenu(Long adminId) {
        return menuMapper.findOrdinaryMenu(adminId);
    }
}
